<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="../../commons/taglibs.jsp"%>
<style>
.pf-row {
	margin-bottom: 5px;
}

.pf-row  label {
	display: inline-block;
	width: 20%;
	text-align: right;
}
</style>
<div class="modal fade" id="pf-add-authorization-modal">
	<div class="modal-dialog ">
		<div class="modal-content">

			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal"></button>
				<h3 id="pf-modal-title">添加权限</h3>
			</div>

			<div class="modal-body">
				<form id="pf-authorization-save-form" action="/manage/system/authorization/save" method="post">
					<%--父节点id --%>
					<input type="hidden" class="form-control" name="parentId" />
					<%--权限id --%>
					<input type="hidden" class="form-control" name="id" />
					<div class="pf-row">
						<label> 父级权限名称: </label>
						<input type="text" class="form-control" style="display: inline-block; width: 50%" placeholder="父级权限名称" name="parentName" disabled/>
					</div>
					<div class="pf-row">
						<label>
							<span class="red">*</span>
							权限名:
						</label>
						<input type="text" class="form-control" style="display: inline-block; width: 50%" placeholder="权限名" name="name" />
					</div>
					<div class="pf-row">
						<label> 菜单图标: </label>
						<input type="text" class="form-control" style="display: inline-block; width: 50%" placeholder="图标" name="menuIcon" />
					</div>
					<div class="pf-row">
						<label> url: </label>
						<input type="text" class="form-control" style="display: inline-block; width: 50%" placeholder="url" name="url" />
					</div>
					<div class="pf-row">
						<label>
							<span class="red">*</span>
							显示顺序:
						</label>
						<input type="text" class="form-control" style="display: inline-block; width: 50%" placeholder="显示顺序" name="showIndex" />
					</div>
				</form>
			</div>
			<div class="modal-footer">
				<button type="button" data-dismiss="modal" class="btn">关闭</button>
				<button type="button" class="btn btn-primary pf-submit">提交</button>
			</div>
		</div>
	</div>
</div>
